<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			var str1 = 'Hello JS and Java';
			console.log(str1.indexOf('JS'));//6
			console.log(str1.indexOf('JS', 9));//-1
			console.log(str1.lastIndexOf('JS'));//6
			
			var str2 = 'how are you doing today';
			var array = str2.split(' ');
			console.log(array);
			console.log(array[1]);
			console.log('2:3:4:5'.split(':'));
		</script>
	</body>
</html>
